import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import myindex from '@/components/myindex'
// import work from '@/components/work'


Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Index',
    component: Index,
    children: [
      {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: function () {
        return import ('../components/HelloWorld.vue')
      },
    },
     
    ]
  }]
})
